package com.lanxiao.cloud.modules.log.application.dto;

import com.lanxiao.cloud.common.core.dto.UserBaseDto;
import com.lanxiao.cloud.common.core.enums.OperationType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 * @author ：qiaoliang
 * @date ：2021-10-19
 */
@ApiModel("动态日志信息返回模型")
public class DynamicLogDto {

  @ApiModelProperty("类型")
  private final OperationType type;

  @ApiModelProperty(value = "创建时间")
  private final Date createTime;

  @ApiModelProperty("操作备注")
  private final String remark;

  @ApiModelProperty(value = "创建者")
  private UserBaseDto<Long> createUser;

  public DynamicLogDto(OperationType type, Date createTime, String remark) {
    this.type = type;
    this.createTime = createTime;
    this.remark = remark;
  }

  public OperationType getType() {
    return type;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public String getRemark() {
    return remark;
  }

  public UserBaseDto<Long> getCreateUser() {
    return createUser;
  }

  public void setCreateUser(UserBaseDto<Long> createUser) {
    this.createUser = createUser;
  }
}
